import request from "../utils/request"

export const getAllClazz=(name,begin,end,page,pageSize)=>request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)
export const addClazzApi=(clazz)=>request.post('clazzs',clazz)
export const getClazzByIdApi=(id)=>request.get(`/clazzs/${id}`)
export const getAllEmpApi=()=>request.get('/emps/list')
export const updateClazzApi=(clazz)=>request.put('clazzs',clazz)
export const deleteClazzApi=(id)=>request.delete(`/clazzs/${id}`)